<template>
  <section>
  <img alt="Vue logo" src="./assets/logo.png">
  <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->

    <ul>
      <li v-for="(path) in paths" @click="skip(path)" :key="path">{{path}}</li>
    </ul>
  </section>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import {useRouter} from 'vue-router'
export default {
  name: 'App',
  components: {
    HelloWorld
  },
  setup() {
    const router = useRouter()

    const skip = function(name) {
      router.push({name})
    }

    const paths = ['home', "list", "event"]

    return {
      skip,
      paths
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
